package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 宠物基本信息之疾病信息
 * </p>
 *
 * @author TP
 * @since 2022-03-18 16:09:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pet_sick_info")
@ApiModel(value = "PetSickInfo对象", description = "宠物基本信息之疾病信息")
public class PetSickInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("pet_sick_info表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("外键,对应宠物信息表的id")
    @TableField("pet_id")
    private Integer petId;

    @ApiModelProperty("外键，对应用户表主键id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("疾病类型")
    @TableField("`type`")
    private String type;

    @ApiModelProperty("症状描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("开始时间")
    @TableField("start_time")
    private LocalDate startTime;

    @ApiModelProperty("是否治愈")
    @TableField("is_cured")
    private Integer isCured;

    @ApiModelProperty("治疗过程说明")
    @TableField("cure_description")
    private String cureDescription;

    @ApiModelProperty("治愈时间")
    @TableField("cure_time")
    private LocalDate cureTime;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Integer delete;


}
